WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.

RULE: The handler listens for the signal to run the event. It should not be indented.

  • Click Run and press the right arrow key. Watch the stage to see what's wrong with the program.
  • The butterfly should move when we press the right arrow key to run the event, but it isn't.
  • Debug the program so that the butterfly moves across the scene when the right arrow key is pressed.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)